//引入mock模块
import Mock from "mockjs";
//引入数据,
// webpack默认对外暴露的有，img,json
import banner from "./banner.json";
import floor from "./floor.json";

/* 
第一个参数是请求地址
第二个是数据
*/
Mock.mock("/mock/banner", { code: 200, data: banner }); //轮播图
Mock.mock("/mock/floor", { code: 200, data: floor }); //
